import request from '@/utils/request'

// 查询教学跟踪列表
export function listTrack(query) {
  return request({
    url: '/eduadmin/track/list',
    method: 'get',
    params: query
  })
}

// 查询班级列表
export function listClass(query) {
  return request({
    url: '/student/class/list',
    method: 'get',
    params: query
  })
}


// 查询学生列表
export function listStudent(query) {
  return request({
    url: '/student/student/list',
    method: 'get',
    params: query
  })
}


// 查询老师列表
export function listTeacher(query) {
  return request({
    url: '/teacher/teacher/list',
    method: 'get',
    params: query
  })
}

// 查询教学跟踪详细
export function getTrack(id) {
  return request({
    url: '/eduadmin/track/' + id,
    method: 'get'
  })
}

// 新增教学跟踪
export function addTrack(data) {
  return request({
    url: '/eduadmin/track',
    method: 'post',
    data: data
  })
}

// 修改教学跟踪
export function updateTrack(data) {
  return request({
    url: '/eduadmin/track',
    method: 'put',
    data: data
  })
}

// 删除教学跟踪
export function delTrack(id) {
  return request({
    url: '/eduadmin/track/' + id,
    method: 'delete'
  })
}
